package com.yy.override_;

/**
 * chapter08  com.yy.override_
 * 2023-04-06 20:31
 *
 * @author yy yuyue
 * description : 不可描述
 * @date 2023/4/6 20:31
 */
public class OverrideExercise {
    public static void main(String[] args) {
        //在main中, 分别创建Person类和Student对象, 调用say方法输出自我介绍
        Person jack = new Person("jack",10);
        System.out.println(jack.say());

        Student smith = new Student("smith",20,123456,99.8);
        System.out.println(smith.say());
    }
}
